package com.trhui.mallbook.client;

import com.trhui.mallbook.domain.common.ApiRequest;
import com.trhui.mallbook.domain.common.BaseResponse;
import com.trhui.mallbook.domain.request.dg.DgChangeInfoRequest;
import com.trhui.mallbook.domain.response.dg.DgChangeInfoResponse;
import com.trhui.mallbook.enums.ChannelTypeEnum;
import com.trhui.mallbook.enums.ServerCodeEnum;

/**
 * @author huangh
 * @version 1.0
 * @description
 * @date 2025/1/21 10:28
 */

public class ChangeClient extends AbstractClient {

    /**
     * 斗拱-收款子商户信息修改
     * @param request
     * @return
     */
    public static BaseResponse<DgChangeInfoResponse> dgChangeInfo(DgChangeInfoRequest request) {
        ApiRequest reqApiRequest = new ApiRequest.ApiRequestBuild()
                .merOrderId(request.getMerOrderId())
                .merchantNo(request.getMerchantNo())
                .params(request)
                .serverCode(ServerCodeEnum.CHANGE_INFO)
                .channelType(ChannelTypeEnum.DG)
                .build();
        return post(reqApiRequest, DgChangeInfoResponse.class);
    }


}
